<<<<<<< .mine
﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LogicUniversityBiz;

namespace LogicUniversity.clerks
{
    public partial class OutstandingDetail : System.Web.UI.Page
    {
        protected void Page_PreInit(Object sender, EventArgs e)
        {
            //(Session["Role"]
            if (Session["Role"] as string != "Clerk")
            {
                Response.Redirect("~/Login.aspx");
            }

        }
        private OutstandingControl outControl=new OutstandingControl();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                
                string deptCode = Request.QueryString["deptcode"] as string;
                string deptName = Request.QueryString["deptName"] as string;

                DeptName.Text = deptName;
                Date.Text = System.DateTime.Today.ToShortDateString();

                List<OutstandingItems> details = outControl.getOutstandingItemsInfoOf(deptCode);
                OutstandingDetailsView.DataSource = details;
                OutstandingDetailsView.DataBind();
            }
        }
    }
}=======
﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LogicUniversityBiz;

namespace LogicUniversity.clerks
{
    public partial class OutstandingDetail : System.Web.UI.Page
    {
        private OutstandingControl outControl=new OutstandingControl();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                
                string deptCode = Request.QueryString["deptcode"] as string;
                string deptName = Request.QueryString["deptName"] as string;

                DeptName.Text = deptName;
                Date.Text = System.DateTime.Today.ToShortDateString();

                List<OutstandingItems> details = outControl.getOutstandingItemsInfoOf(deptCode);
                OutstandingDetailsView.DataSource = details;
                OutstandingDetailsView.DataBind();
            }
        }
    }
}>>>>>>> .r28
